//6的阶乘
function sum(n){
    if (n == 1) {
        return 1
    } else {
        return n+arguments.callee(n-1);
    }
}
var result=sum(6);
console.log(result);